package com.pet.server.po;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * 活动位置常量
 * @author lichuang
 *
 */
@Entity
@Table(name = "campaign_position")
public class CampaignPosition implements java.io.Serializable {

	// Fields
	private Integer id;
	private String playType;//位置类型
	private String positionName;//位置名称
	
	
	
	/** default constructor */
	public CampaignPosition() {
	}

	/** full constructor */
	public CampaignPosition(Integer id, String playType, 
			String positionName) {
		super();
		this.id = id;
		this.playType = playType;
		this.positionName = positionName;
		
		
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	@Column(name = "play_type", length = 32)
	public String getPlayType() {
		return playType;
	}

	public void setPlayType(String playType) {
		this.playType = playType;
	}

	@Column(name = "position_name", length = 32)
	public String getPositionName() {
		return positionName;
	}

	public void setPositionName(String positionName) {
		this.positionName = positionName;
	}	
}